<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../../webjars/static/plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="../../../webjars/static/plugins/bootstrap/css/font-awesome.min.css">
<link rel="stylesheet" href="../../../webjars/static/plugins/layui/css/layui.css">

<link rel="stylesheet" href="../../../webjars/static/plugins/toastr/toastr.min.css">

<script src="../../../webjars/static/plugins/jquery/jquery.min.js"></script>
<script src="../../../webjars/static/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="../../../webjars/static/plugins/vue/vue.min.js"></script>

<script src="../../../webjars/static/plugins/toastr/toastr.min.js" type="text/javascript"
		charset="utf-8"></script>

<script src="../../../webjars/static/js/common.js"></script>
<head>
    <title>接口信息</title>
	<style>
		.swbu-main {
			line-height: 1.6em;
			color: #444;
		}

		.swbu-main p {
			line-height: 2em;
			margin: 1em 0;
		}

		.swbu-main .sbu-api-title {
			font-weight: bold;
			width: 65px;
			/* border: 1px solid red; */
			display: inline-block;
		}

		code {
			-webkit-border-radius: 2px;
			border-radius: 2px;
			padding: 0 5px;
		}
	</style>
</head>
<script src="../../../webjars/static/plugins/layui/layui.js"></script>

<body>
<div id="myapp" v-cloak>
	<div class="panel-group" id="accordion">
		<div class="panel panel-primary ">
			<div class="panel-heading  text-center" data-toggle="collapse" data-parent="#accordion"  data-target="#save">
				<h3 class="panel-title inline">
					新增
				</h3>
			</div>
			<div id="save" class="panel-collapse collapse in">
				<div class="panel-body">
					<div class="swbu-main">
						<div >
							<p><span class="sbu-api-title">接口地址</span> <code style="background-color: transparent;">/api/category/add</code></p>
							<p><span class="sbu-api-title">请求方式</span> <code style="background-color: transparent;">POST</code></p>
							<p><span class="sbu-api-title">consumes</span> <code style="background-color: transparent;">["application/json"]</code></p>
							<p><span class="sbu-api-title">produces</span> <code style="background-color: transparent;">["*/*"]</code></p>
							<p><span class="sbu-api-title">接口描述</span> <code style="background-color: transparent;">专属接口文档</code></p>

							<p><strong>请求示例</strong></p>
							<div class=" ace_editor ace-eclipse">
								<code style="white-space: pre-wrap;">{{example.save.request}}</code>
							</div>

							<p><strong>请求参数</strong></p>

							<div>
								<table class="layui-table">
									<thead>
									<tr>
										<th>参数名称(code)</th>
										<th>说明(name)</th>
										<th>请求类型(type)</th>
										<th>必填(isMust)</th>
										<th>类型(String)</th>
										<th>属性默认值(defaultValue)</th>
										<th>备注</th>
									</tr>
									</thead>
									<tbody>

									<tr>
										<td>token</td>
										<td>API 接口验证 token</td>
										<td>JWT（字符串）header 参数</td>
										<td><div ><span
												style="color:red;" >true</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>后台登录接口获取</span></td>
										<td>该参数是后台登录接口获取，请勿改动！</td>
									</tr>

									<tr>
										<td>category</td>
										<td>分类编码</td>
										<td>英文字母（字符串）</td>
										<td><div ><span
												style="color:red;" >true</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>固定参数值：{{example.category}}</span></td>
										<td>该参数是固定值，请勿改动！</td>
									</tr>
									<tr>
										<td>categoryDataList</td>
										<td>数据列表</td>
										<td>JSONArray</td>
										<td><div ><span
												style="color:red;" >true</span></div></td>
										<td>												<div >JSONArray</div>
										</td>
										<td><span>非空</span></td>
										<td>该参数是JSONArray，用于解析，提交数据。</td>
									</tr>									<tr>
										<td>name</td>
										<td>名称</td>
										<td>文本（字符串）</td>
										<td><div ><span>false</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>非必填</span></td>
										<td>系统保留参数</td>
									</tr>									<tr>
										<td>orderNum</td>
										<td>排序</td>
										<td>数字</td>
										<td><div ><span>false</span></div></td>
										<td>												<div >long</div>
										</td>
										<td><span>非必填</span></td>
										<td>系统保留参数</td>
									</tr>									<tr>
										<td>remark</td>
										<td>备注</td>
										<td>长文本（字符串）</td>
										<td><div ><span>false</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>非必填</span></td>
										<td>系统保留参数</td>
									</tr>

									<template v-for="attribute in allAttributes">
										<tr>
											<td >
												<div ><span v-text="attribute.code">code</span>
												</div>
											</td>
											<td >
												<div  v-text="attribute.name">name</div>
											</td>
											<td  >
												<div  ><span  v-text="attribute.type">type</span></div>
											</td>
											<td  >
												<div ><span
														style="color:red;"  v-if="attribute.isMust==1">true</span>
													<span   v-else>false</span></div>
											</td>
											<td  >
												<div >String</div>
											</td>
											<td  >
												<div  >
													<span  v-if="attribute.defaultValue"  v-text="attribute.defaultValue"></span>
													<span  v-else>NULL</span>
												</div>
											</td>
											<td  >
												<div  ><span  v-text="attribute.help">help</span></div>
											</td>
										</tr>
									</template>
									</tbody>
								</table>
							</div>

							<p><strong>响应示例</strong></p>
							<div class=" ace_editor ace-eclipse">
								<code  style="white-space: pre-wrap;">{{example.save.response}}</code>
							</div>

							<p>
								<strong>响应参数</strong></p>
							<table class="layui-table">
								<thead>
								<tr>
									<th>参数名称</th>
									<th>说明</th>
									<th>类型</th>
								</tr>
								</thead>
								<tbody>

								<tr>
									<td>msg</td>
									<td>调用结果：成功或失败</td>
									<td>String</td>
								</tr>
								<tr>
									<td>code</td>
									<td>0 成功，其他失败</td>
									<td>Integer</td>
								</tr>
								<tr>
									<td>data</td>
									<td>返回数据</td>
									<td>JSONObject</td>
								</tr>
								<tr>
									<td>success</td>
									<td>调用状态：true 或 false</td>
									<td>boolean</td>
								</tr>
								<tr>
									<td>debugMsg</td>
									<td>调试信息</td>
									<td>String</td>
								</tr>
								</tbody>
							</table>


						</div>
					</div>
				</div>
			</div>

<!--			<div class="panel-footer  text-center">-->

<!--			</div>-->

		</div>
		<div class="panel panel-warning">
			<div class="panel-heading  text-center"  data-toggle="collapse" data-parent="#accordion"  data-target="#update">
				<h3 class="panel-title inline">
					修改
				</h3>
			</div>
			<div id="update" class="panel-collapse collapse">
				<div class="panel-body">
					<div class="swbu-main">
						<div >
							<p><span class="sbu-api-title">接口地址</span> <code style="background-color: transparent;">/api/category/edit</code></p>
							<p><span class="sbu-api-title">请求方式</span> <code style="background-color: transparent;">POST</code></p>
							<p><span class="sbu-api-title">consumes</span> <code style="background-color: transparent;">["application/json"]</code></p>
							<p><span class="sbu-api-title">produces</span> <code style="background-color: transparent;">["*/*"]</code></p>
							<p><span class="sbu-api-title">接口描述</span> <code style="background-color: transparent;">专属接口文档</code></p>

							<p><strong>请求示例</strong></p>
							<div class=" ace_editor ace-eclipse">
								<code style="white-space: pre-wrap;">{{example.update.request}}</code>
							</div>

							<p><strong>请求参数</strong></p>

							<div>
								<table class="layui-table">
									<thead>
									<tr>
										<th>参数名称(code)</th>
										<th>说明(name)</th>
										<th>请求类型(type)</th>
										<th>必填(isMust)</th>
										<th>类型(String)</th>
										<th>属性默认值(defaultValue)</th>
										<th>备注</th>
									</tr>
									</thead>
									<tbody>

									<tr>
										<td>token</td>
										<td>API 接口验证 token</td>
										<td>JWT（字符串）header 参数</td>
										<td><div ><span
												style="color:red;" >true</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>后台登录接口获取</span></td>
										<td>该参数是后台登录接口获取，请勿改动！</td>
									</tr>
									<tr>
										<td>id</td>
										<td>主键</td>
										<td>UUID（字符串）</td>
										<td><div ><span
												style="color:red;" >true</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>唯一值</span></td>
										<td>该参数是数据主键，请勿改动！</td>
									</tr>
									<tr>
										<td>name</td>
										<td>名称</td>
										<td>文本（字符串）</td>
										<td><div ><span>false</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>非必填</span></td>
										<td>系统保留参数</td>
									</tr>									<tr>
										<td>orderNum</td>
										<td>排序</td>
										<td>数字</td>
										<td><div ><span>false</span></div></td>
										<td>												<div >long</div>
										</td>
										<td><span>非必填</span></td>
										<td>系统保留参数</td>
									</tr>									<tr>
										<td>remark</td>
										<td>备注</td>
										<td>长文本（字符串）</td>
										<td><div ><span>false</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>非必填</span></td>
										<td>系统保留参数</td>
									</tr>
									<template v-for="attribute in allAttributes">
										<tr>
											<td >
												<div ><span v-text="attribute.code">code</span>
												</div>
											</td>
											<td >
												<div  v-text="attribute.name">name</div>
											</td>
											<td  >
												<div  ><span  v-text="attribute.type">type</span></div>
											</td>
											<td  >
												<div ><span
														style="color:red;"  v-if="attribute.isMust==1">true</span>
													<span   v-else>false</span></div>
											</td>
											<td  >
												<div >String</div>
											</td>
											<td  >
												<div  >
													<span  v-if="attribute.defaultValue"  v-text="attribute.defaultValue"></span>
													<span  v-else>NULL</span>
												</div>
											</td>
											<td  >
												<div  ><span  v-text="attribute.help">help</span></div>
											</td>
										</tr>
									</template>
									</tbody>
								</table>
							</div>

							<p><strong>响应示例</strong></p>
							<div class=" ace_editor ace-eclipse">
								<code  style="white-space: pre-wrap;">{{example.update.response}}</code>
							</div>

							<p>
								<strong>响应参数</strong></p>
							<table class="layui-table">
								<thead>
								<tr>
									<th>参数名称</th>
									<th>说明</th>
									<th>类型</th>
								</tr>
								</thead>
								<tbody>

								<tr>
									<td>msg</td>
									<td>调用结果：成功或失败</td>
									<td>String</td>
								</tr>
								<tr>
									<td>code</td>
									<td>0 成功，其他失败</td>
									<td>Integer</td>
								</tr>
								<tr>
									<td>data</td>
									<td>返回数据</td>
									<td>JSONObject</td>
								</tr>
								<tr>
									<td>success</td>
									<td>调用状态：true 或 false</td>
									<td>boolean</td>
								</tr>
								<tr>
									<td>debugMsg</td>
									<td>调试信息</td>
									<td>String</td>
								</tr>
								</tbody>
							</table>


						</div>
					</div>
				</div>
			</div>

<!--			<div class="panel-footer  text-center">-->

<!--			</div>-->

		</div>
		<div class="panel panel-danger ">
			<div class="panel-heading  text-center"  data-toggle="collapse" data-parent="#accordion"  data-target="#delete">
				<h3 class="panel-title inline">
					删除
				</h3>
			</div>
			<div id="delete" class="panel-collapse collapse">
				<div class="panel-body">
					<div class="swbu-main">
						<div >
							<p><span class="sbu-api-title">接口地址</span> <code style="background-color: transparent;">/api/category/delete</code></p>
							<p><span class="sbu-api-title">请求方式</span> <code style="background-color: transparent;">GET</code></p>
							<p><span class="sbu-api-title">consumes</span> <code style="background-color: transparent;">["application/json"]</code></p>
							<p><span class="sbu-api-title">produces</span> <code style="background-color: transparent;">["*/*"]</code></p>
							<p><span class="sbu-api-title">接口描述</span> <code style="background-color: transparent;">专属接口文档</code></p>

							<p><strong>请求示例</strong></p>
							<div class=" ace_editor ace-eclipse">
								<code style="white-space: pre-wrap;">/api/category/delete/{id}</code>
							</div>

							<p><strong>请求参数</strong></p>

							<div>
								<table class="layui-table">
									<thead>
									<tr>
										<th>参数名称(code)</th>
										<th>说明(name)</th>
										<th>请求类型(type)</th>
										<th>必填(isMust)</th>
										<th>类型(String)</th>
										<th>属性默认值(defaultValue)</th>
										<th>备注</th>
									</tr>
									</thead>
									<tbody>

									<tr>
										<td>token</td>
										<td>API 接口验证 token</td>
										<td>JWT（字符串）header 参数</td>
										<td><div ><span
												style="color:red;" >true</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>后台登录接口获取</span></td>
										<td>该参数是后台登录接口获取，请勿改动！</td>
									</tr>

									<tr>
										<td>id</td>
										<td>主键</td>
										<td>UUID（字符串）</td>
										<td><div ><span
												style="color:red;" >true</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>唯一值</span></td>
										<td>该参数是数据主键，请勿改动！</td>
									</tr>
									</tbody>
								</table>
							</div>

							<p><strong>响应示例</strong></p>
							<div class=" ace_editor ace-eclipse">
								<code  style="white-space: pre-wrap;">{{example.delete.response}}</code>
							</div>

							<p>
								<strong>响应参数</strong></p>
							<table class="layui-table">
								<thead>
								<tr>
									<th>参数名称</th>
									<th>说明</th>
									<th>类型</th>
								</tr>
								</thead>
								<tbody>

								<tr>
									<td>msg</td>
									<td>调用结果：成功或失败</td>
									<td>String</td>
								</tr>
								<tr>
									<td>code</td>
									<td>0 成功，其他失败</td>
									<td>Integer</td>
								</tr>
								<tr>
									<td>data</td>
									<td>返回数据</td>
									<td>JSONObject</td>
								</tr>
								<tr>
									<td>success</td>
									<td>调用状态：true 或 false</td>
									<td>boolean</td>
								</tr>
								<tr>
									<td>debugMsg</td>
									<td>调试信息</td>
									<td>String</td>
								</tr>
								</tbody>
							</table>


						</div>
					</div>
				</div>
			</div>

<!--			<div class="panel-footer  text-center">-->

<!--			</div>-->

		</div>
		<div class="panel panel-info ">
			<div class="panel-heading  text-center"  data-toggle="collapse" data-parent="#accordion"  data-target="#info">
				<h3 class="panel-title inline">
					信息
				</h3>
			</div>
			<div id="info" class="panel-collapse collapse">
				<div class="panel-body">
					<div class="swbu-main">
						<div >
							<p><span class="sbu-api-title">接口地址</span> <code style="background-color: transparent;">/api/category/info</code></p>
							<p><span class="sbu-api-title">请求方式</span> <code style="background-color: transparent;">GET</code></p>
							<p><span class="sbu-api-title">consumes</span> <code style="background-color: transparent;">["application/json"]</code></p>
							<p><span class="sbu-api-title">produces</span> <code style="background-color: transparent;">["*/*"]</code></p>
							<p><span class="sbu-api-title">接口描述</span> <code style="background-color: transparent;">专属接口文档</code></p>

							<p><strong>请求示例</strong></p>
							<div class=" ace_editor ace-eclipse">
								<code style="white-space: pre-wrap;">/api/category/info/{id}</code>
							</div>

							<p><strong>请求参数</strong></p>

							<div>
								<table class="layui-table">
									<thead>
									<tr>
										<th>参数名称(code)</th>
										<th>说明(name)</th>
										<th>请求类型(type)</th>
										<th>必填(isMust)</th>
										<th>类型(String)</th>
										<th>属性默认值(defaultValue)</th>
										<th>备注</th>
									</tr>
									</thead>
									<tbody>

									<tr>
										<td>token</td>
										<td>API 接口验证 token</td>
										<td>JWT（字符串）header 参数</td>
										<td><div ><span
												style="color:red;" >true</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>后台登录接口获取</span></td>
										<td>该参数是后台登录接口获取，请勿改动！</td>
									</tr>

									<tr>
										<td>id</td>
										<td>主键</td>
										<td>UUID（字符串）</td>
										<td><div ><span
												style="color:red;" >true</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>唯一值</span></td>
										<td>该参数是数据主键，请勿改动！</td>
									</tr>
									</tbody>
								</table>
							</div>

							<p><strong>响应示例</strong></p>
							<div class=" ace_editor ace-eclipse">
								<code  style="white-space: pre-wrap;">{{example.info.response}}</code>
							</div>

							<p>
								<strong>响应参数</strong></p>
							<table class="layui-table">
								<thead>
								<tr>
									<th>参数名称</th>
									<th>说明</th>
									<th>类型</th>
								</tr>
								</thead>
								<tbody>

								<tr>
									<td>msg</td>
									<td>调用结果：成功或失败</td>
									<td>String</td>
								</tr>
								<tr>
									<td>code</td>
									<td>0 成功，其他失败</td>
									<td>Integer</td>
								</tr>
								<tr>
									<td>data</td>
									<td>返回数据</td>
									<td>JSONObject</td>
								</tr>
								<tr>
									<td>success</td>
									<td>调用状态：true 或 false</td>
									<td>boolean</td>
								</tr>
								<tr>
									<td>debugMsg</td>
									<td>调试信息</td>
									<td>String</td>
								</tr>
								<tr>
									<td>id</td>
									<td>主键</td>
									<td>String</td>
								</tr>
								<tr>
									<td>categoryId</td>
									<td>分类主键</td>
									<td>long</td>
								</tr>
								<tr>
									<td>categoryName</td>
									<td>分类名称</td>
									<td>String</td>
								</tr>
								<tr>
									<td>code</td>
									<td>分类编码</td>
									<td>String</td>
								</tr>
								<tr>
									<td>name</td>
									<td>名称</td>
									<td>String</td>
								</tr>
								<tr>
									<td>orderNum</td>
									<td>排序</td>
									<td>String</td>
								</tr>
								<tr>
									<td>remark</td>
									<td>备注</td>
									<td>String</td>
								</tr>
								<template v-for="attribute in allAttributes">
									<tr>
										<td >
											<div ><span v-text="attribute.code">code</span>
											</div>
										</td>
										<td >
											<div  v-text="attribute.name">name</div>
										</td>
										<td  >
											<div  ><span  v-text="attribute.type">type</span></div>
										</td>
									</tr>
								</template>
								</tbody>
							</table>


						</div>
					</div>
				</div>
			</div>

			<!--			<div class="panel-footer  text-center">-->

			<!--			</div>-->

		</div>
		<div class="panel panel-success ">
			<div class="panel-heading  text-center"  data-toggle="collapse" data-parent="#accordion"  data-target="#page">
				<h3 class="panel-title inline">
					分页
				</h3>
			</div>
			<div id="page" class="panel-collapse collapse">
				<div class="panel-body">
					<div class="swbu-main">
						<div >
							<p><span class="sbu-api-title">接口地址</span> <code style="background-color: transparent;">/api/category/list</code></p>
							<p><span class="sbu-api-title">请求方式</span> <code style="background-color: transparent;">POST</code></p>
							<p><span class="sbu-api-title">consumes</span> <code style="background-color: transparent;">["application/json"]</code></p>
							<p><span class="sbu-api-title">produces</span> <code style="background-color: transparent;">["*/*"]</code></p>
							<p><span class="sbu-api-title">接口描述</span> <code style="background-color: transparent;">专属接口文档</code></p>

							<p><strong>请求示例</strong></p>
							<div class=" ace_editor ace-eclipse">
								<code style="white-space: pre-wrap;">{{example.page.request}}</code>
							</div>

							<p><strong>请求参数</strong></p>

							<div>
								<table class="layui-table">
									<thead>
									<tr>
										<th>参数名称(code)</th>
										<th>说明(name)</th>
										<th>请求类型(type)</th>
										<th>必填(isMust)</th>
										<th>类型(String)</th>
										<th>属性默认值(defaultValue)</th>
										<th>备注</th>
									</tr>
									</thead>
									<tbody>

									<tr>
										<td>token</td>
										<td>API 接口验证 token</td>
										<td>JWT（字符串）header 参数</td>
										<td><div ><span
												style="color:red;" >true</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>后台登录接口获取</span></td>
										<td>该参数是后台登录接口获取，请勿改动！</td>
									</tr>

									<tr>
										<td>category</td>
										<td>分类编码</td>
										<td>英文字母（字符串）</td>
										<td><div ><span
												style="color:red;" >true</span></div></td>
										<td>												<div >String</div>
										</td>
										<td><span>固定参数值：{{example.category}}</span></td>
										<td>该参数是固定值，请勿改动！</td>
									</tr>

									<tr>
										<td>currPage</td>
										<td>当前页</td>
										<td>数字</td>
										<td><div ><span
												style="color:red;" >true</span></div></td>
										<td>												<div >Integer</div>
										</td>
										<td><span>默认值：1</span></td>
										<td>分页参数</td>
									</tr>

									<tr>
										<td>pageSize</td>
										<td>每页条数</td>
										<td>数字</td>
										<td><div ><span
												style="color:red;" >true</span></div></td>
										<td>												<div >Integer</div>
										</td>
										<td><span>默认值：10</span></td>
										<td>分页参数</td>
									</tr>

									</tbody>
								</table>
							</div>

							<p><strong>响应示例</strong></p>
							<div class=" ace_editor ace-eclipse">
								<code  style="white-space: pre-wrap;">{{example.page.response}}</code>
							</div>

							<p>
								<strong>响应参数</strong></p>
							<table class="layui-table">
								<thead>
								<tr>
									<th>参数名称</th>
									<th>说明</th>
									<th>类型</th>
								</tr>
								</thead>
								<tbody>

								<tr>
									<td>msg</td>
									<td>调用结果：成功或失败</td>
									<td>String</td>
								</tr>
								<tr>
									<td>code</td>
									<td>0 成功，其他失败</td>
									<td>Integer</td>
								</tr>
								<tr>
									<td>data</td>
									<td>返回数据</td>
									<td>JSONObject</td>
								</tr>
								<tr>
									<td>success</td>
									<td>调用状态：true 或 false</td>
									<td>boolean</td>
								</tr>
								<tr>
									<td>debugMsg</td>
									<td>调试信息</td>
									<td>String</td>
								</tr>
								<tr>
									<td>list</td>
									<td>返回数据对象集合</td>
									<td>JSONArray</td>
								</tr>

								<tr>
									<td>pageSize</td>
									<td>每页条数</td>
									<td>Integer</td>
								</tr>

								<tr>
									<td>totalCount</td>
									<td>总条数</td>
									<td>Integer</td>
								</tr>

								<tr>
									<td>totalPage</td>
									<td>总页数</td>
									<td>Integer</td>
								</tr>
								<tr>
									<td>id</td>
									<td>主键</td>
									<td>String</td>
								</tr>
								<tr>
									<td>categoryId</td>
									<td>分类主键</td>
									<td>long</td>
								</tr>
								<tr>
									<td>categoryName</td>
									<td>分类名称</td>
									<td>String</td>
								</tr>
								<tr>
									<td>code（list 中的 code）</td>
									<td>分类编码</td>
									<td>String</td>
								</tr>
								<tr>
									<td>name</td>
									<td>名称</td>
									<td>String</td>
								</tr>
								<tr>
									<td>orderNum</td>
									<td>排序</td>
									<td>String</td>
								</tr>
								<tr>
									<td>remark</td>
									<td>备注</td>
									<td>String</td>
								</tr>
								<template v-for="attribute in allAttributes">
									<tr>
										<td >
											<div ><span v-text="attribute.code">code</span>
											</div>
										</td>
										<td >
											<div  v-text="attribute.name">name</div>
										</td>
										<td  >
											<div  ><span  v-text="attribute.type">type</span></div>
										</td>
									</tr>
								</template>
								</tbody>
							</table>


						</div>
					</div>
				</div>
			</div>

			<!--			<div class="panel-footer  text-center">-->

			<!--			</div>-->

		</div>
	</div>
</div>



<script>
	let categoryId = getParams("categoryId");

	$(function () {
		vm.getAttributes(categoryId);
		vm.getExample(categoryId);
	})

	var vm = new Vue({
		el: '#myapp',
		data: {
			example:{
				category:"",
				save:{},
				update:{},
				delete:{},
				page:{},
				info:{},
			},
			attributes: []
		},
		created:function(e){

		},
		computed: {
			allAttributes: function () {
				let typeDatas = com.selectDictDatas("diy_attribute_type")
				//console.log("typeDatas-"+typeDatas)
				let typeDatasMap = {}
				typeDatas.forEach(item=>{
					typeDatasMap[item.value] = item.name
				})

				let allAttributes=this.attributes.map(item => {
					item.type=typeDatasMap[""+item.type]+"（字符串）"
					return item;
				})

				return allAttributes;
			}
		},
		methods: {
			getAttributes: function (categoryId) {
				if (categoryId == null) {
					toast("访问地址缺少 categoryId 参数！");
					return
				}
				var url = "../../../anon/productionqr/attributes";
				com.AjaxGet(url, {categoryId: categoryId}, "json", function (r) {
					vm.attributes = r.data.attributes;
				}, null, false)
			}, getExample: function (categoryId) {
				if (categoryId == null) {
					toast("访问地址缺少 categoryId 参数！");
					return
				}
				var url = "../../../anon/productionqr/example/"+categoryId;
				com.AjaxGet(url, null, "json", function (r) {
					vm.example = r.data;
				}, null, false)
			},
		}
	});

</script>
</body>
</html>